package 实验三.三层cs;
  
public class Contact {  
    String name;  
    String address;  
    String phone;  
  
    public Contact(String name, String address, String phone) {  
        this.name = name;  
        this.address = address;  
        this.phone = phone;  
    }  
  
    @Override  
    public String toString() {  
        return "姓名: " + name + ", 地址: " + address + ", 电话: " + phone;  
    }  
}